import { expect } from "chai";
import { ethers } from "hardhat";
import { HelloWorld } from "../typechain-types";

describe("HelloWorld", function () {
  let helloWorld: HelloWorld;

  beforeEach(async function () {
    const HelloWorld = await ethers.getContractFactory("HelloWorld");
    helloWorld = await HelloWorld.deploy();
    await helloWorld.deployed();
  });

  it("should return 'Hello, World!'", async function () {
    const greeting = await helloWorld.sayHello();
    expect(greeting).to.equal("Hello, World!");
  });
});